#ifndef dbs_h_libiao
#define dbs_h_libiao
int closedb(void);
int addword(const char* str,int isright);
int getwordmsg(const char*words,char*retstr,int* retlen);
int getdays(const char*tablename,int start,int end,char*retstr,int* retlen);
int getwordall(int wordid,int startday,int endday,char* retstr,int* retlen);
int initdb();
int sethistory(int id,const char* str);
int gethistory(int id,char * retstr,int* strlen);
int addlib(int id,const char* name,const char *url,int start,int num);
int dellib(int id);
int findlib(char * retstr,int* strlen);
#endif// dbs_h_libiao
